<template>
	<view class="advertising-content">
		<view class="content-left">
			<image :src="guangao.img" mode=""></image>
		</view>
		<view class="content-center">
			<view class="content-center-title">{{guangao.title}}</view>
			<view class="content-center-item">
				<text class="content-center-item-title">{{guangao.content}}</text>
				<text class="content-center-item-title-item">{{guangao.type}}</text>
			</view>
		</view>
		<view class="content-right">
			<image src="/static/index/tui.png" mode="" @click="quXiao"></image>
			<view class="content-right-text">查看详情</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"yuedu-guangao",
		props:{
			guangao:{
				type:Object,
				default (){
					return {}
				}
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			quXiao(){  //广告取消
				this.$emit('quXiao')
			}
		}
	}
</script>

<style scoped lang="scss">
.advertising-content{
	display: flex;
	align-items: center;
	.content-left{
		width: 170rpx;
		padding: 15rpx 10rpx;
		box-sizing: border-box;
		image{
			width: 130rpx;
			height: 70rpx;
		}
	}
	.content-center{
		width: 400rpx;
		.content-center-title{
			font-size: 30rpx;
			width: 400rpx;
			white-space:nowrap;
			overflow:hidden;
			text-overflow:ellipsis; 
			font-weight: 600;
			line-height: 60rpx;
		}
		.content-center-item{
			display: flex;
			font-size: 20rpx;
			color: #cdb4a2;
			.content-center-item-title{
				flex: 3;
				white-space:nowrap;
				overflow:hidden;
				text-overflow:ellipsis; 
				font-weight: 400;
			}
			.content-center-item-title-item{
				flex: 1;
				margin-left: 10rpx;
				color: #cdcbc3;
			}
		}
		
	}
	.content-right{
		width: 170rpx;
		margin-left: 15rpx;
		image{
			width: 20rpx;
			height:20rpx;
			display: flex;
			margin: -20rpx  0 10rpx 130rpx;
		}
		.content-right-text{
			width: 150rpx;
			height:50rpx;
			background-color: #f7b134;
			color: #fff;
			border-radius: 15rpx;
			font-size: 24rpx;
			font-weight: 600;
			line-height: 50rpx;
			text-align: center;
		}
	}
}

</style>
